package com.dcivision.framework.taglib.channel;

import java.io.IOException;

import javax.servlet.jsp.JspWriter;

public class AjaxWriter extends JspWriter{
  StringBuffer content = new StringBuffer();
  
  protected AjaxWriter(int arg0, boolean arg1) {
    super(arg0, arg1);
    
  }
   
  public void clear() throws IOException {
    
    content = new StringBuffer();
  }

  public void clearBuffer() throws IOException {
    
    content = new StringBuffer();
  }

  public void close() throws IOException {
    
    
  }

  public void flush() throws IOException {
    
    
  }

  public int getRemaining() {
    
    return 0;
  }

  public void newLine() throws IOException {
    
    content.append("\n");
  }

  public void print(boolean arg0) throws IOException {
    
    content.append(arg0);
  }

  public void print(char arg0) throws IOException {
    
    content.append(arg0);
  }

  public void print(int arg0) throws IOException {
    
    content.append(arg0);
  }

  public void print(long arg0) throws IOException {
    
    content.append(arg0); 
  }

  public void print(float arg0) throws IOException {
    
    content.append(arg0);
  }

  public void print(double arg0) throws IOException {
    
    content.append(arg0);
  }

  public void print(char[] arg0) throws IOException {
    
    content.append(arg0);
  }

  public void print(Object arg0) throws IOException {
    
    content.append(arg0);
  }

  public void println() throws IOException {
    
    
  }

  public void println(boolean arg0) throws IOException {
    
    content.append(arg0); 
  }

  public void println(char arg0) throws IOException {
    
    content.append(arg0);
  }

  public void println(int arg0) throws IOException {
    
    content.append(arg0);
  }

  public void println(long arg0) throws IOException {
    
    content.append(arg0);
  }

  public void println(float arg0) throws IOException {
    
    content.append(arg0);
  }

  public void println(double arg0) throws IOException {
    
    content.append(arg0);
  }

  public void println(char[] arg0) throws IOException {
    
    content.append(arg0);
  }

  public void println(Object arg0) throws IOException {
    
    content.append(arg0);
  }

  public void write(char[] cbuf, int off, int len) throws IOException {
    
    
  }

  public void print(String arg0) throws IOException {
    
    content.append(arg0);
  }

  public void println(String arg0) throws IOException {
    
    content.append(arg0);
  }

  public StringBuffer getContent() {
    return content;
  }

  public void setContent(StringBuffer content) {
    this.content = content;
  }
}
